<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/22
 * Time: 17:22
 */

namespace app\api\Model;


use think\Model;

class Category extends Model
{

    protected $name = 'product_cate';
    protected $hidden = ['update_time','create_time','orderby','status'];

    public function img(){
        return $this->belongsTo('Image','topic_img_id','id');
    }
}